<ui:fragment xmlns="http://www.w3.org/1999/xhtml"
  xmlns:nxthemes="http://nuxeo.org/nxthemes"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:c="http://java.sun.com/jstl/core">

<table class="dataTableNoBorder">
<tbody>
  <c:if test="#{permissionActionListManager.allowNegativeACL}">
    <tr>
      <td class="labelColumn">
        <h:outputText value="#{messages['label.action']}"/>
      </td>
      <td class="fieldColumn">
        <h:selectOneMenu value="#{permissionActionListManager.selectedGrant}"
         id="rights_grant_select">
        <f:selectItems
        value="#{permissionActionListManager.permissionActionItems}" />
        </h:selectOneMenu>
      </td>
    </tr>
  </c:if>
  <tr>
    <td class="labelColumn">
      <h:outputText value="#{messages['label.security.permission']}" />
    </td>
    <td class="fieldColumn">
      <h:selectOneMenu value="#{permissionListManager.selectedPermission}"
       id="rights_permission_select">
      <f:selectItems value="#{securityActions.settablePermissions}" />
      </h:selectOneMenu>
    </td>
  </tr>
  <tr>
    <td class="labelColumn"></td>
    <td class="fieldColumn">
      <h:commandButton
      value="#{permissionActionListManager.allowNegativeACL ?
        messages['command.security.addPerm'] : messages['command.security.grantPerm']}"
      class="button"
      disabled="#{!securityActions.canAddSecurityRules}"
      action="#{securityActions.addPermissions}"
      id="rights_add_button" />
    </td>
  </tr>
</tbody>
</table>

</ui:fragment>